package com.imarkket;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;

import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

@SuppressWarnings("deprecation")
public class c_status extends TabActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.l_status);

        TabHost host = getTabHost();
        TabSpec statusspec = host.newTabSpec(getString(R.string.st_st_phone));
        statusspec.setIndicator(getString(R.string.st_st_phone), getResources().getDrawable(R.drawable.nphone));
        Intent phoneStatusIntent = new Intent(this, c_status_phone.class);
        statusspec.setContent(phoneStatusIntent);

        TabSpec batteryspec = host.newTabSpec(getString(R.string.st_st_battery));
        batteryspec.setIndicator(getString(R.string.st_st_battery), getResources().getDrawable(R.drawable.nbattery));
        Intent batteryIntent = new Intent(this, c_status_battery.class);
        batteryspec.setContent(batteryIntent);

        // Adding all TabSpec to TabHost
        host.addTab(statusspec);
        host.addTab(batteryspec);

    }

}
